﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Media.Effects;

namespace TransCode.Player.Controls
{
    /// <summary>
    /// Interaction logic for IconButton.xaml
    /// </summary>
    public partial class IconButton : UserControl
    {
        public IconButton()
        {
            InitializeComponent();
        }

        private void icon_MouseEnter(object sender, MouseEventArgs e)
        {
            DropShadowEffect eff = new DropShadowEffect();
            eff.Color = Colors.Blue;
            eff.BlurRadius = 5;
            eff.Direction = 270;
            eff.ShadowDepth = 2;

            icon.Effect = eff;

        }

        public ImageSource Source { get { return icon.Source; } set { icon.Source = value; } }

        private void icon_MouseLeave(object sender, MouseEventArgs e)
        {
            icon.Effect = null;
        }


    }
}
